/**
 * 默认加载
 * @type {{init: Window.process.init, public: Window.process.public}}
 */
window.process = {
    init() {
        this.initData();
        this.public();
       
    },
    initData(){
          this.load()
    },
    load(){
       var api='/api/wx/authorize'
       var data=''
       getAjax(api,data,this.callbackLoad,this) 
    },
    callbackLoad(data,that){
        setStorage(openid,data.openId)
    },
    swiper() {
        var leagth=$(".swiper-container img").length;
        if(leagth<2){
        }else {
            $(".swiper-container").swiper({
                loop: true,
                autoplayDisableOnInteraction: false,
                autoplay: 3000
            });
        }

    },
    public() {
        this.swiper();

    }
};

/**
 * 启动方法执行
 */
process.init();



